package com.pbaptista.rem.client;

import com.google.gwt.activity.shared.Activity;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.place.shared.Place;
import com.pbaptista.rem.client.activities.pages.home.HomeActivity;

public class TabletMainActivityMapper implements ActivityMapper {

	private final ClientFactory clientFactory;

	private Place lastPlace;

	public TabletMainActivityMapper(ClientFactory clientFactory) {
		this.clientFactory = clientFactory;

	}

	private HomeActivity homeActivity;

	@Override
	public Activity getActivity(Place place) {
		if (homeActivity == null) {
			homeActivity = new HomeActivity(clientFactory);
		}
		return homeActivity;
	}

}
